import request from '@/utils/request'

// 查询电能耗信息列表
export function listElectricityConsumption(data) {
  return request({
    url: '/idss/electricityConsumption/list',
    method: 'post',
    data: data
  })
}

// 查询电能耗信息详细
export function getElectricityConsumption(id) {
  return request({
    url: '/idss/electricityConsumption/' + id,
    method: 'get'
  })
}

// 新增电能耗信息
export function addElectricityConsumption(data) {
  return request({
    url: '/idss/electricityConsumption',
    method: 'post',
    data: data
  })
}

// 修改电能耗信息
export function updateElectricityConsumption(data) {
  return request({
    url: '/idss/electricityConsumption',
    method: 'put',
    data: data
  })
}

// 删除电能耗信息
export function delElectricityConsumption(id) {
  return request({
    url: '/idss/electricityConsumption/' + id,
    method: 'delete'
  })
}

// 导出电能耗信息
export function exportElectricityConsumption(query) {
  return request({
    url: '/idss/electricityConsumption/export',
    method: 'get',
    params: query
  })
}
// 下载模板
export function importTemplate(data) {
  return request({
    url: '/idss/electricityConsumption/importTemplate',
    method: 'post',
    responseType: "blob",
    data: data
  })
}
